{{extend 'layout.html'}}
{{if not len(user):}}
<H2> Required user was not found! </H2>
{{else:}}
{{userProfile = user[0]}}

<h1> {{=userProfile.users.first_name}} {{=userProfile.users.last_name}} ({{=userProfile.users.username}}) 
{{if userProfile.users.isValid == True:}}
<span style="background-color: blue; color: white"> Valid Account </span>
{{else:}}
<span style="background-color: red; color: white"> Expired Account </span>
{{pass}}
</h1> 
<div align="left"><img height="100" width="80" src="{{=URL(r=request, f="avatar", args=[userProfile.users.id])}}"/></div>
<b> Username: </b> {{=userProfile.users.username}} 
<br/>
<b> E-Mail: </b> {{=userProfile.users.email}} 
<br/>
<b> Registered On: </b> {{=userProfile.users.registeredOn}} 
<br/>
<b> Mobile Number: </b> {{=userProfile.users.mobile}} 
<br/>
<b> Faculty: </b> {{=userProfile.users.faculty}} 
<br/>
<b> Department: </b> {{=userProfile.users.department}} 
<br/>
<b> Gender: </b> {{=userProfile.users.gender}} 
<br/>
<b> Foundation: </b> {{=userProfile.foundations.name}} 
<br/>


{{pass}}
